package week2;

import java.util.Scanner;

public class Main3 {


	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		while(in.hasNextLine()){
			int n = in.nextInt();
			 StringBuilder b=new StringBuilder( "" );
			for(int i=0;i<n;i++)
			{
				b.append(String.valueOf(i));
			}
			int x=in.nextInt();
			int y=in.nextInt();
			String b1=b.substring(x, y);
			System.out.println(b1);
			
		}
		in.close();
	}

}
